package com.lcq.gulimall.cart.controller;

import com.lcq.gulimall.cart.service.CartService;
import com.lcq.gulimall.cart.vo.CartItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CartController {
    @Autowired
    CartService cartService;

    @RequestMapping("getCheckedCartItemList")
    public List<CartItem> getCheckedCartItemList(){
        return cartService.getCheckedCartItemList();
    }
}
